export default {
  state: () => ({
    testObj: {
      name: '张三',
      age: 18
    },
    isLogin: true,
    origin: null,
    dest: null,
    goodsVolAndWeight: {
      goodsVol: null,
      goodsWeight: null
    }
  }),
  mutations: {
    updateTest(state, val) {
      state.testObj = val;
    },
    updateLoginStatus (state, val) {
      state.isLogin = val;
    },
    updateOrigin(state, val) {
      state.origin = val;
    },
    updateDest(state, val) {
      state.dest = val;
    },
    updateGoodsVolAndWeight(state, val) {
      state.goodsVolAndWeight = val;
    }
  },
  actions: {

  }
}